﻿<%@ Page Title="TB_Clients" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="XDSoft.Web.TB_Clients.List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--Title -->
    <!--Title end -->
    <!--Add  -->
    <!--Add end -->
    <!--Search -->
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td align="left">
                客户名称：<asp:TextBox ID="txtClientName" runat="server"></asp:TextBox>&nbsp;&nbsp; 公司名称：<asp:TextBox
                    ID="txtCorpName" runat="server"></asp:TextBox>&nbsp;&nbsp; 地址：<asp:TextBox ID="txtAddress"
                        runat="server"></asp:TextBox>&nbsp;&nbsp; 电话：<asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
                <br />
                <br />
                手机：<asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>&nbsp;&nbsp; 等级：<asp:DropDownList
                    ID="ddlClientLevel" runat="server" />
            </td>
            <td class="tdbg">
                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>
                <input type="button" onclick="window.location='add.aspx'" value="新增" />
                 <asp:Button ID="btnExport" runat="server" Text="导出" onclick="btnExport_Click"></asp:Button>
            </td>
        </tr>
    </table>
    <!--Search end-->
    <br />
    <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" CellPadding="3"
        OnPageIndexChanging="gridView_PageIndexChanging" BorderWidth="1px" DataKeyNames="id"
        OnRowDataBound="gridView_RowDataBound" AutoGenerateColumns="false" PageSize="10"
        RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
        <Columns>
            <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                <ItemTemplate>
                    <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="clientName" HeaderText="客户名称" SortExpression="clientName"
                ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="corpName" HeaderText="公司名称" SortExpression="corpName"
                ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="address" HeaderText="地址" SortExpression="address" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="tel" HeaderText="电话" SortExpression="tel" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="mobile1" HeaderText="手机1" SortExpression="mobile1" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="mobile2" HeaderText="手机2" SortExpression="mobile2" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="webUrl" HeaderText="主页" SortExpression="webUrl" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="email" HeaderText="电邮" SortExpression="email" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="qq" HeaderText="QQ号" SortExpression="qq" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="traceLog" HeaderText="跟踪日志" SortExpression="traceLog"
                ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="memo" HeaderText="备注" SortExpression="memo" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="clientLevel" HeaderText="客户等级" SortExpression="clientLevel"
                ItemStyle-HorizontalAlign="Center" />
            <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="id"
                DataNavigateUrlFormatString="Show.aspx?id={0}" Text="详细" />
            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="id"
                DataNavigateUrlFormatString="Modify.aspx?id={0}" Text="编辑" />
            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
        <tr>
            <td style="width: 1px;">
            </td>
            <td align="left">
                <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>